package com.wind.scheduled.task;

import com.wind.common.dto.TestDTO;
import com.wind.service.TestService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 全局任务
 */
@Slf4j
@Component
@AllArgsConstructor
public class GlobalTask {

    private final TestService testService;

    public void test() {
        testService.add(new TestDTO());
        testService.edit(new TestDTO());
    }
}
